﻿using System;

namespace zijian666.Converts.Core;
/// <summary>
/// 对象 <seealso cref="IFormattable.ToString(string, IFormatProvider)"/> 时使用的参数
/// </summary>
public readonly struct ToStringArgument
{
    /// <summary>
    /// 构造函数
    /// </summary>
    public ToStringArgument(string? formatString, IFormatProvider? formatProvider)
    {
        FormatString = formatString;
        FormatProvider = formatProvider;
    }
    /// <summary>
    /// 格式化字符串
    /// </summary>
    public string? FormatString { get; }
    /// <summary>
    /// 格式化提供程序
    /// </summary>
    public IFormatProvider? FormatProvider { get; }
}
